package net.zjitc.mapper;

import net.zjitc.pojo.Orderitem;
import net.zjitc.pojo.Orders;
import net.zjitc.vo.OrderConditionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/4/10 14:42
 */
public interface OrderMapper {
    List<Orders> findAllOrder();
    Orders findById(String id);

    List<Orders> findByCondition(OrderConditionVo vo);

    List<Orderitem> findByOid(String id);
    int deleteOrderById(String id);

    int add(Orders orders);
    List<Orders> findOrderByUser(int id);
    void update_state(String id);
    void delete(String id);
}
